﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using Yala.Models.AuthProviders;

namespace Yala.DataAccess.Common.EF.Mappings {
    public class AuthProviderConfiuration : EntityTypeConfiguration<AuthProvider> {
        public AuthProviderConfiuration() {
            ToTable("AuthProviders");
            HasKey(x => x.Id).Property(x => x.Id).HasColumnName("AuthProviderId").IsRequired();
            Property(x => x.Name).HasColumnName("ProviderName").IsRequired();
            Property(x => x.ServiceUrl).HasColumnName("ProviderServiceUrl").IsRequired();
        }
    }
}
